home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 020a / grabb390.zip / INFO.BAT < prev    next >
DOS Batch File  |  1991-06-29  |  4KB  |  90 lines

  1. echo off
  2. cls
  3. if not exist grabber.doc goto :err
  4. if exist convert.doc goto :msg
  5. :err
  6. echo  
  7. echo Error:  Cannot locate both of the documentation files GRABBER.DOC and
  8. echo CONVERT.DOC.  Please change to the drive or directory which contains
  9. echo your GRABBER distribution files, then run the INFO.BAT file again.
  10. echo  
  11. goto :exit
  12. :msg
  13. echo The complete documentation for the GRABBER program is contained in the file
  14. echo GRABBER.DOC, which runs to 32 pages.  (GRABBER.DOC also contains instructions
  15. echo for the CHKVBE and GRHOTKEY programs.)  The documentation for the GR2GIF,
  16. echo GR2PCX and GR2PIC programs is contained in the file CONVERT.DOC (7 pages).
  17. echo  
  18. echo GRABBER.DOC and CONVERT.DOC are pre-formatted for printing on regular 8-1/2
  19. echo by 11-inch paper, 60 or 66 lines per page.
  20. echo  
  21. echo If you don't want to print these files now, press [Ctrl-C] and then press [Y].
  22. echo Otherwise, you may let this batch file print them for you.  Simply do this:
  23. echo  
  24. echo             1. Turn your printer on
  25. echo             2. Adjust the left margin to zero or 1
  26. echo             3. Adjust the top line to the very top of the page
  27. echo  
  28. :chk1
  29. if %1zap==zap goto :lpt1
  30. if %1==lpt1 goto :lpt1
  31. if not %1==LPT1 goto :chk2
  32. :lpt1
  33. set pr$=lpt1
  34. echo     ┌─────────────────────────────────────────────────────────────────┐
  35. echo     │ By the way, I am about to print to the printer which is con-    │
  36. echo     │ nected to your LPT1 port.  If you want to print to LPT2 or LPT3 │
  37. echo     │ instead, abort now and re-enter "INFO LPT2" or "INFO LPT3".     │
  38. echo     └─────────────────────────────────────────────────────────────────┘
  39. echo  
  40. goto :msg2
  41. :chk2
  42. if %1==lpt2 goto :lpt2
  43. if not %1==LPT2 goto :chk3
  44. :lpt2
  45. set pr$=lpt2
  46. echo     ┌─────────────────────────────────────────────────────────────────┐
  47. echo     │ By the way, I am about to print to the printer which is con-    │
  48. echo     │ nected to your LPT2 port.  If you want to print to LPT1 or LPT3 │
  49. echo     │ instead, abort now and re-enter "INFO LPT1" or "INFO LPT3".     │
  50. echo     └─────────────────────────────────────────────────────────────────┘
  51. echo  
  52. goto :msg2
  53. :chk3
  54. if %1==lpt3 goto :lpt3
  55. if not %1==LPT3 goto :lpt1
  56. :lpt3
  57. set pr$=lpt3
  58. echo     ┌─────────────────────────────────────────────────────────────────┐
  59. echo     │ By the way, I am about to print to the printer which is con-    │
  60. echo     │ nected to your LPT3 port.  If you want to print to LPT1 or LPT2 │
  61. echo     │ instead, abort now and re-enter "INFO LPT1" or "INFO LPT2".     │
  62. echo     └─────────────────────────────────────────────────────────────────┘
  63. echo  
  64. :msg2
  65. echo             4. Press any key when ready to print,
  66. echo                 or type [Ctrl-C] now to abort...
  67. pause > nul
  68. cls
  69. echo  
  70. echo     ┌──────────────────────────────────────────────────────────────┐
  71. echo     │ Printing GRABBER.DOC (32 pages).  Press [Ctrl-C] to abort... │
  72. echo     └──────────────────────────────────────────────────────────────┘
  73. if not exist jerrymsg.txt goto :docs
  74. type jerrymsg.txt > %pr$%
  75. :docs
  76. type grabber.doc > %pr$%
  77. echo  
  78. echo     ┌──────────────────────────────────────────────────────────────┐
  79. echo     │ Printing CONVERT.DOC (7 pages).   Press [Ctrl-C] to abort... │
  80. echo     └──────────────────────────────────────────────────────────────┘
  81. type convert.doc > %pr$%
  82. if not exist order.frm goto :bye
  83. type order.frm > %pr$%
  84. :bye
  85. echo  
  86. echo   Done.
  87. echo  
  88. :exit
  89. set pr$=
  90.